import { createRouter, createWebHistory } from 'vue-router'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path:'/main',
      name:'main',
      component:() => import('../views/main/MainView.vue'),
    },
    {
      path:'/login',
      name:'login',
      component:() => import('../views/login.vue'),
    },
    {
      path:'/register',
      name:'register',
      component:() => import('../views/register.vue'),
    },
    {
      path:'/page/shoe',
      name:'shoe',
      component:() => import('../views/page/ShoePage.vue'),
    },
    {
      path:'/page/shoppingcart',
      name:'shoppingcart',
      component:() => import('../views/page/ShoppingCartPage.vue'),
    },
    {
      path:'/page/orders',
      name:'orders',
      component:() => import('../views/page/OrdersPage.vue'),
    },
    {
      path:'/page/usercenter',
      name:'usercenter',
      component:() => import('../views/page/UserCenterView.vue'),
    }
  ],
})

export default router
